/* 
 * File:   ZipBrowser.h
 * Author: KENNJI
 *
 * Created on April 9, 2013, 5:30 PM
 */

#ifndef ZIPBROWSER_H
#define	ZIPBROWSER_H

#include "../Tree/ZipTree.h"
/**
 * Class to Browse the zip File
 */
class ZipBrowser
{
public:
    /**
     * Instantiate a ZipBroser to Browse the zip file 
     */
    ZipBrowser();
    /**
     * Navigate the zip file
     * @param fileName path of zip file
     * @return the tree that contains the directories of this zip file
     */
    ZipTree* navigate(char* fileName);

private:
    void updateZipTree(char* path, int crc);
    
private:
        /**
        *The zip tree that stores the directories of this zip file
        */
    ZipTree* zipTree;
};



#endif	/* ZIPBROWSER_H */

